/**
 * 
 */
package niuke.huawei;

import java.util.Scanner;

/**
 * @author zhongfang
 *
 */
public class IP是否存在覆盖 {

	static class IP implements Comparable<IP> {
		int[] ints = new int[4];
		int index;

		public IP(String[] strings, int index) {
			for (int i = 0; i < 4; i++) {
				ints[i] = Integer.parseInt(strings[i]);
			}
			this.index = index;
		}

		@Override
		public int compareTo(IP o) {
			for (int i = 0; i < ints.length; i++) {
				if (ints[i] != o.ints[i]) {
					return ints[i] - o.ints[i];
				}
			}
			return 0;
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		IP ips[] = new IP[4];
		for (int i = 0; i < 4; i++) {
			String string = scanner.nextLine();
			String[] strings = string.split("\\.");
			IP ip = new IP(strings, i / 2);
			ips[i] = ip;
		}
		if (ips[1].compareTo(ips[2]) < 0 || ips[3].compareTo(ips[0]) < 0) {
			System.out.println("No Overlap IP");
		} else {
			System.out.println("Overlap IP");
		}
	}

}
